home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 3dcd / Animraw.dir / 00001_Start.ls next >
Encoding:
Text File  |  1999-04-28  |  3.3 KB  |  123 lines

  1. on startMovie
  2.   global GSFpathname, gEngButtonSprite, gCursorReady, gplaybtnsprite, gPcVidSprite
  3.   set the mouseDownScript to EMPTY
  4.   set the mouseUpScript to EMPTY
  5.   gEngButtonSprite = 8
  6.   gCursorReady = 1
  7.   gplaybtnsprite = 0
  8.   gPcVidSprite = 52
  9.   puppetSprite(46, 1)
  10. end
  11.  
  12. on stopMovie
  13.   stopmovieqt()
  14. end
  15.  
  16. on idle
  17.   global gCursorReady
  18.   if gCursorReady = 1 then
  19.     cursor(200)
  20.     checkCursors()
  21.     set the locH of sprite 46 to the mouseH
  22.     set the locV of sprite 46 to the mouseV
  23.     updateStage()
  24.   end if
  25.   qtidle()
  26. end
  27.  
  28. on checkCursors
  29.   setzeoIdle()
  30.   set the castNum of sprite 46 to the number of member "curs1"
  31.   if rollOver(2) then
  32.     set the castNum of sprite 46 to the number of member "cursDown"
  33.   end if
  34.   if the castNum of sprite 3 and rollOver(3) then
  35.     set the castNum of sprite 46 to the number of member "cursLeft"
  36.   end if
  37.   if the castNum of sprite 4 and rollOver(4) then
  38.     set the castNum of sprite 46 to the number of member "cursRight"
  39.   end if
  40.   if rollOver(7) then
  41.     set the castNum of sprite 46 to the number of member "hotCursor"
  42.   end if
  43.   if rollOver(8) and sprite(8).visible then
  44.     set the castNum of sprite 46 to the number of member "hotCursor"
  45.   end if
  46.   if the castNum of sprite 9 and rollOver(9) then
  47.     set the castNum of sprite 46 to the number of member "cursUp"
  48.   end if
  49.   if the castNum of sprite 10 and rollOver(10) then
  50.     set the castNum of sprite 46 to the number of member "cursDown"
  51.   end if
  52.   if the castNum of sprite 11 and rollOver(11) then
  53.     set the castNum of sprite 46 to the number of member "nonCursor"
  54.   end if
  55.   if rollOver(13) or rollOver(14) then
  56.     set the castNum of sprite 46 to the number of member "hotCursor"
  57.   end if
  58.   if rollOver(20) then
  59.     set the castNum of sprite 46 to the number of member "hotCursor"
  60.   end if
  61. end
  62.  
  63. on setzeoIdle
  64.   global gPcVidSprite, zeoIdle
  65.   zeoIdle = 0
  66.   if the memberNum of sprite gPcVidSprite > 0 then
  67.     if sprite(gPcVidSprite).movieRate > 0 then
  68.       zeoIdle = 1
  69.     end if
  70.   end if
  71. end
  72.  
  73. on quickSwitch theSound
  74.   channel = the clickOn
  75.   puppetSprite(channel, 1)
  76.   if theSound <> "none" then
  77.     puppetSound(theSound)
  78.   end if
  79.   theCast = cast(the castNum of sprite channel).name
  80.   set the castNum of sprite channel to the number of member (theCast & "B")
  81.   updateStage()
  82.   repeat while soundBusy(1)
  83.   end repeat
  84.   repeat while the stillDown
  85.   end repeat
  86.   set the castNum of sprite channel to the number of member theCast
  87.   updateStage()
  88.   puppetSprite(channel, 0)
  89. end
  90.  
  91. on engSwitch theSound
  92.   global gEngButtonSprite
  93.   if theSound <> "none" then
  94.     puppetSound(theSound)
  95.   end if
  96.   theName = member(the castNum of sprite gEngButtonSprite).name
  97.   case theName of
  98.     "shrEngOffUp":
  99.       set the castNum of sprite gEngButtonSprite to the number of member "shrEngOffDown"
  100.       updateStage()
  101.       repeat while the stillDown
  102.       end repeat
  103.       set the castNum of sprite gEngButtonSprite to the number of member "shrEngOnUp"
  104.       voicEng()
  105.       updateStage()
  106.     "shrEngOnUp":
  107.       set the castNum of sprite gEngButtonSprite to the number of member "shrEngOnDown"
  108.       updateStage()
  109.       repeat while the stillDown
  110.       end repeat
  111.       set the castNum of sprite gEngButtonSprite to the number of member "shrEngOffUp"
  112.       voicNih()
  113.       updateStage()
  114.   end case
  115. end
  116.  
  117. on myreturn
  118.   global GSFpathname
  119.   quickSwitch("vidClick")
  120.   go("xitS")
  121.   go(1, GSFpathname & "19r")
  122. end
  123.